/**
 * Created by Terne on 2017/9/4.
 */
import Vue from 'vue'
import Router from 'vue-router'
import Index from '../views/index'
import Reg from '../views/reg'
import Blogs from '../views/blogs'
import test1 from '../views/test1.vue'
import test2 from '../views/test2.vue'
import Mes from '../views/message'
Vue.use(Router);

const routes = [
    {
        path:'/',
        name:'index',
        component:Index
    },
    {
        path:'/reg',
        name:'reg',
        component:Reg,
    },
    {
        path:'/blogs',
        name:'blogs',
        component:Blogs,
        children:[
            {
                path:'text1',
                name:'text1',
                component:test1
            },
            {
                path:'text2',
                name:'text2',
                component:test2
            },
            {
                path:'mes',
                name:'mes',
                component:Mes,
            }
        ]
    },
];

export default new Router({
    routes
})